package com.sea.operate.service;


import com.sea.operate.entity.RelatedSku;
import com.sea.operate.entity.RelatedSkuPrice;

import java.io.InputStream;
import java.util.List;

/**
 * @author 陈鸿飞
 */
public interface RelatedSkuPriceService {
    /**
     *
     * @param relatedId
     * @return
     */
    RelatedSkuPrice findByRelatedIds(Integer relatedId);
    /**
     * 查询日期存在的异常数据
     * @param relatedSkuPrice
     * @return
     */
    List<RelatedSkuPrice> findByDate(RelatedSkuPrice relatedSkuPrice);
    /**
     * 查询指定
     * @param relatedSkuPrice
     * @return
     */
    List<RelatedSkuPrice> findByCnd(RelatedSkuPrice relatedSkuPrice);

    /**
     * 新增
     * @param relatedSkuPrice
     * @return
     */
    int save(RelatedSkuPrice relatedSkuPrice);
    /**
     *
     * @param relatedSkuPrice
     * @return
     */
    int updateByRelatedId(RelatedSkuPrice relatedSkuPrice);
    /**
     * 导入SKU
     * @param inputStream
     * @param fileName
     * @return
     * @throws Exception
     */
    void importRelatedSkuPrice(InputStream inputStream, String fileName) throws Exception;

    /**
     * 导入SKU
     * @param inputStream
     * @param fileName
     * @return
     * @throws Exception
     */
    void importRelatedSalesPrice(InputStream inputStream, String fileName) throws Exception;
    /**
     * 更新差价
     * @return
     */
    Integer updateDifferences();

    /**
     * 更新变价范围
     * @param relatedSkuPrice
     * @return
     */
    Integer updateDateByRelatedId(RelatedSkuPrice relatedSkuPrice);

    /**
     * 更新标记
     * @return
     */
    Integer updateFlag();


}
